package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 4, 2010
 * Time: 5:58:31 PM
 *
 */
class DynamicPredicate implements Predicate {


  //TODO
  def Closure predicateClosure = { args -> true }
  def List<Predicate> subPredicates=[]
  def List<Object> parameters=[]

  def boolean apply(Object object) { return predicateClosure.call( object, parameters, subPredicates) }

  

}
